
package com.example.android.BluetoothChat;

import android.app.TabActivity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TabHost;
import android.widget.TabHost.TabSpec;
 


public class MasterTab extends TabActivity {
	/** Called when the activity is first created. */
	
	 
  
	@Override
    public void onCreate(Bundle savedInstanceState) { 
        super.onCreate(savedInstanceState); 
        setContentView(R.layout.master); 
        TabHost tabHost = (TabHost)findViewById(android.R.id.tabhost); 
        TabSpec Tab1Spec = tabHost.newTabSpec("tid1"); 
        TabSpec Tab2Spec = tabHost.newTabSpec("tid2"); 
        TabSpec Tab3Spec = tabHost.newTabSpec("tid3");
        Tab1Spec.setIndicator("Real Time").setContent(new Intent(this,Main.class)); 
        Tab2Spec.setIndicator("Per day").setContent(new Intent(this,DataInDay.class)); 
        Tab3Spec.setIndicator("Per month").setContent(new Intent(this,DataInMonth.class)); 
        tabHost.addTab(Tab1Spec); 
        tabHost.addTab(Tab2Spec); 
        tabHost.addTab(Tab3Spec);
    }
}
